package com.rt.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rt.system.mapper.RtAssemblyConfMapper;
import com.rt.system.domain.RtAssemblyConf;
import com.rt.system.service.IRtAssemblyConfService;

/**
 * 策略题型Service业务层处理
 * 
 * @author Yg
 * @date 2022-05-05
 */
@Service
public class RtAssemblyConfServiceImpl implements IRtAssemblyConfService 
{
    @Autowired
    private RtAssemblyConfMapper rtAssemblyConfMapper;

    /**
     * 查询策略题型
     * 
     * @param id 策略题型主键
     * @return 策略题型
     */
    @Override
    public RtAssemblyConf selectRtAssemblyConfById(Long id)
    {
        return rtAssemblyConfMapper.selectRtAssemblyConfById(id);
    }

    /**
     * 查询策略题型列表
     * 
     * @param rtAssemblyConf 策略题型
     * @return 策略题型
     */
    @Override
    public List<RtAssemblyConf> selectRtAssemblyConfList(RtAssemblyConf rtAssemblyConf)
    {
        return rtAssemblyConfMapper.selectRtAssemblyConfList(rtAssemblyConf);
    }

    /**
     * 新增策略题型
     * 
     * @param rtAssemblyConf 策略题型
     * @return 结果
     */
    @Override
    public int insertRtAssemblyConf(RtAssemblyConf rtAssemblyConf)
    {
        return rtAssemblyConfMapper.insertRtAssemblyConf(rtAssemblyConf);
    }

    /**
     * 修改策略题型
     * 
     * @param rtAssemblyConf 策略题型
     * @return 结果
     */
    @Override
    public int updateRtAssemblyConf(RtAssemblyConf rtAssemblyConf)
    {
        return rtAssemblyConfMapper.updateRtAssemblyConf(rtAssemblyConf);
    }

    /**
     * 批量删除策略题型
     * 
     * @param ids 需要删除的策略题型主键
     * @return 结果
     */
    @Override
    public int deleteRtAssemblyConfByIds(Long[] ids)
    {
        return rtAssemblyConfMapper.deleteRtAssemblyConfByIds(ids);
    }

    /**
     * 删除策略题型信息
     * 
     * @param id 策略题型主键
     * @return 结果
     */
    @Override
    public int deleteRtAssemblyConfById(Long id)
    {
        return rtAssemblyConfMapper.deleteRtAssemblyConfById(id);
    }
}
